
<%@page import="java.io.BufferedOutputStream"%>
<%
com.serviceprovider.business.module.admin.license.model.License license = (com.serviceprovider.business.module.admin.license.model.License)request.getAttribute("license");
response.setContentType("application/download");
response.setHeader("Content-Disposition", "filename=\""+license.getFilename()+"\"");

BufferedOutputStream bout = new BufferedOutputStream(response.getOutputStream());
bout.write(license.getAttachments());

%>